<?php

/**
 * simple_text - Simple text object
 *
 * @package
 * @author Alexis Eric
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Std_TextObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);
        $text_content = Erra_Fields_Text::create('text_content')
                ->setSize(70)
                ->setDescription(__('Text content'))
                ->_localize();
        $this->addFields($text_content);
    }

    public function __render($displayArgs = null) {
        $res = $this->text_content->value;
        FB::log($this);
        return $res;
    }

}

?>